import request from '@/utils/request'

// 查询高光时刻列表
export function listSchool(query) {
  return request({
    url: '/glory/school/list',
    method: 'get',
    params: query
  })
}

// 查询高光时刻详细
export function getSchool(id) {
  return request({
    url: '/glory/school/' + id,
    method: 'get'
  })
}

// 新增高光时刻
export function addSchool(data) {
  return request({
    url: '/glory/school',
    method: 'post',
    data: data
  })
}

// 修改高光时刻
export function updateSchool(data) {
  return request({
    url: '/glory/school',
    method: 'put',
    data: data
  })
}

// 删除高光时刻
export function delSchool(id) {
  return request({
    url: '/glory/school/' + id,
    method: 'delete'
  })
}

// 导出高光时刻
export function exportSchool(query) {
  return request({
    url: '/glory/school/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/glory/school/importTemplate',
    method: 'get'
  })
}